package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevAlarmLog;
import cn.sciento.farm.devicemanager.dao.model.filter.AlarmLogFilter;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface AlarmLogService {

    int create(DevAlarmLog log);

    int updateById(DevAlarmLog log);

    IPage<DevAlarmLog> getPage(AlarmLogFilter filter);

    Integer getByAlarmId(Long alarmId, long todayZeroTime, long todayLasTime);

    int batchDeleteLogByCreateTime(long startTime);
}
